package com.zx.map.service;

import com.zx.map.service.model.MerchantOfflineConfigInfoModel;
import org.springframework.dao.DataAccessException;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * Created by IntelliJ IDEA. User: ������ Date: 15-5-12 Time: ����14:30 To
 * change this template use File | Settings | File Templates.
 */
public interface MerchantOfflineConfigInfoService {

	/**
	 * 根据单Key查找Model
	 * 
	 * @param key
	 * @return
	 * @throws DataAccessException
	 */
	public MerchantOfflineConfigInfoModel getModelByKey(String key)
			throws DataAccessException;

	/**
	 * 根据Model查找列表
	 * 
	 * @param model
	 * @return
	 * @throws DataAccessException
	 */
	public List<MerchantOfflineConfigInfoModel> getListByModel(MerchantOfflineConfigInfoModel model)
			throws DataAccessException;

	/**
	 * 新增并返回主键
	 * 
	 * @param model
	 * @return
	 * @throws DataAccessException
	 */
	public String add(MerchantOfflineConfigInfoModel model) throws DataAccessException, UnsupportedEncodingException;

	/**
	 * 更新并返回主键
	 * 
	 * @param model
	 * @throws DataAccessException
	 */
	public String update(MerchantOfflineConfigInfoModel model) throws DataAccessException;

	/**
	 * 删除
	 *
	 * @param model
	 * @return
	 * @throws DataAccessException
	 */
	public void delete(MerchantOfflineConfigInfoModel model) throws DataAccessException;
	
}
